thin.imports('/public/configure/conf.complete.js');

if (document.getElementById('submit-logout')) {
	document.getElementById('submit-logout').onclick = function() {
		factory.request('_mem_logout');
	}
}

function __complete_mblogout(res) {
	if(res.status == 204) {
		layer.msg('退出成功');
		setTimeout(function() {
			window.location.href = '/';
		}, 1200);
	} else {
		alert(res.error);
	}
}